#ifndef __SHAREMEMORY_H_
#define __SHAREMEMORY_H_
#include <stddef.h>

struct ShareMemory;
typedef struct ShareMemory ShMemory;
ShMemory *InitShareMemory(const char *pathname,int pro_id,size_t size);
void ReadFormShareMemory(ShMemory *m,void *ptr,size_t size);
void WriteToShareMemory(ShMemory *m,void *ptr,size_t size);
void ClearShareMemory(ShMemory *m);
#endif